<?php
include_once '../lib/global.php';
session_start();
/* 判断用户是否已经登录 */
if( isset($_SESSION['access']) ){
    if( $_SESSION['access']==true){
        header("Location: mainPage.php");
    }
}
?>

<html>
    <head>
        <title>用户登录</title>
        <meta charset="UTF-8">
        <link href="css/login.css" type="text/css" rel="stylesheet" />
    </head>
    <body id=loginBody>
        <form action="<?php echo "../lib/biz/checkUserLogin.php"; ?>" method="post">
        <div id="login">
            <dl>
                <dd id="top">
                    <ul>
                        <li class="top_l"></li>
                        <li class="top_c"></li>
                        <li class="top_r"></li>
                    </ul>
                </dd>
                <!-- ---------------------- -->
                <dd id="main">
                    <ul>
                        <li class="main_l"></li>
                        <li class="main_c">
                            <div class="main_box">
                                <ul>
                                    <li class="main_text">用户名：</li>
                                    <li class="main_input">
                                        <input class="user_name_class" id="user_name_id" type="text"
                                               maxlength="20" name="username" />
                                    </li>
                                </ul>
                                <ul>
                                    <li class="main_text">密码：</li>
                                    <li class="main_input">
                                        <input class="user_password_class" id="user_password_id" type="password"
                                               name="password" />
                                    </li>
                                </ul>
                            </div>
                        </li>
                        <li class="main_r">
                            <input class="enter_class" id="enter_id" type="submit" style="cursor:pointer" value="login"/>
                        </li>
                    </ul>
                </dd>
                
                <dd id="bottom">
                    <ul>
                        <li class="bottom_l"></li>
                        <li class="bottom_c"></li>
                        <li class="bottom_r"></li>
                    </ul>
                </dd>
            </dl>
        </div>
        </form>
</body>
</html>
